package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author WeiZiDong
 */
@Table(name = "`onl_cgform_head`")
@Data
@ApiModel("")
public class OnlCgformHead implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "主键ID", example = "String")
    private String id;
    @Column(name = "`table_name`")
    @ApiModelProperty(value = "表名", example = "String")
    private String tableName;
    @Column(name = "`table_type`")
    @ApiModelProperty(value = "表类型:0单表、1主表、2附表", example = "1")
    private Integer tableType;
    @Column(name = "`table_version`")
    @ApiModelProperty(value = "表版本", example = "1")
    private Integer tableVersion;
    @Column(name = "`table_txt`")
    @ApiModelProperty(value = "表说明", example = "String")
    private String tableTxt;
    @Column(name = "`is_checkbox`")
    @ApiModelProperty(value = "是否带checkbox", example = "String")
    private String isCheckbox;
    @Column(name = "`is_db_synch`")
    @ApiModelProperty(value = "同步数据库状态", example = "N")
    private String isDbSynch;
    @Column(name = "`is_page`")
    @ApiModelProperty(value = "是否分页", example = "String")
    private String isPage;
    @Column(name = "`is_tree`")
    @ApiModelProperty(value = "是否是树", example = "String")
    private String isTree;
    @Column(name = "`id_sequence`")
    @ApiModelProperty(value = "主键生成序列", example = "String")
    private String idSequence;
    @Column(name = "`id_type`")
    @ApiModelProperty(value = "主键类型", example = "String")
    private String idType;
    @Column(name = "`query_mode`")
    @ApiModelProperty(value = "查询模式", example = "String")
    private String queryMode;
    @Column(name = "`relation_type`")
    @ApiModelProperty(value = "映射关系0一对多1一对一", example = "1")
    private Integer relationType;
    @Column(name = "`sub_table_str`")
    @ApiModelProperty(value = "子表", example = "String")
    private String subTableStr;
    @Column(name = "`tab_order_num`")
    @ApiModelProperty(value = "附表排序序号", example = "1")
    private Integer tabOrderNum;
    @Column(name = "`tree_parent_id_field`")
    @ApiModelProperty(value = "树形表单父id", example = "String")
    private String treeParentIdField;
    @Column(name = "`tree_id_field`")
    @ApiModelProperty(value = "树表主键字段", example = "String")
    private String treeIdField;
    @Column(name = "`tree_fieldname`")
    @ApiModelProperty(value = "树开表单列字段", example = "String")
    private String treeFieldname;
    @Column(name = "`form_category`")
    @ApiModelProperty(value = "表单分类", example = "bdfl_ptbd")
    private String formCategory;
    @Column(name = "`form_template`")
    @ApiModelProperty(value = "PC表单模板", example = "String")
    private String formTemplate;
    @Column(name = "`form_template_mobile`")
    @ApiModelProperty(value = "表单模板样式(移动端)", example = "String")
    private String formTemplateMobile;
    @Column(name = "`scroll`")
    @ApiModelProperty(value = "是否有横向滚动条", example = "0")
    private Integer scroll;
    @Column(name = "`copy_version`")
    @ApiModelProperty(value = "复制版本号", example = "1")
    private Integer copyVersion;
    @Column(name = "`copy_type`")
    @ApiModelProperty(value = "复制表类型1为复制表0为原始表", example = "0")
    private Integer copyType;
    @Column(name = "`physic_id`")
    @ApiModelProperty(value = "原始表ID", example = "String")
    private String physicId;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "修改人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "修改时间", example = "2019-05-05 17:55:31")
    private Date updateTime;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`theme_template`")
    @ApiModelProperty(value = "主题模板", example = "String")
    private String themeTemplate;

    private static final long serialVersionUID = 1L;
}
